package com.woniuxy.yoga.commons.core.cofig;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

//线程池配置
@Configuration
public class ThreadPoolConfig {
    @Bean
    public ScheduledExecutorService threadPool() {
        return Executors.newScheduledThreadPool(4);
    }
}
